<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var result =prompt('请输入你的成绩：');
        if(result>=90){
            alert('A');
        }else if(result<90&&result>=80){
            alert('B')
        }else if(result<80&&result>=70){
            alert('c');
        }else if(result<70&&result>=60){
            alert('D')
        }else if(result<60){
            alert('E');
        }
    </script>
</head>
<body>
    
</body>
</html>